protoc \
  -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/gogo/protobuf/protobuf \
  --gofast_out=plugins=grpc,\Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,\Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types:../ \
  --grpc-gateway_out=allow_delete_body=true,allow_patch_feature=false,logtostderr=true:../ \
  inventory/proto/*.proto \
  --plugin=protoc-gen-swagger=$GOPATH/bin/protoc-gen-swagger --swagger_out=.
mv ../inventory/api/inventory/* inventory/
rm -rf ../inventory
mv inventory/proto/*.json inventory/doc/
swaghtml gen -i inventory/doc/*.json -o inventory/doc/仓库接口文档.html
cp inventory/proto/const.proto inventory/doc/枚举和消息.proto